package com.like.network;

import com.like.entity.CommonResult;
import com.like.entity.ReportInfo;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface AmountService {

    @FormUrlEncoded
    @POST("api/api/rechargeFn.html")
    Call<CommonResult> recharge(@Field("cardnumber") String cardNo, @Field("brand_id") String brandId,
                                @Field("txMoney") String money, @Field("clientid") String clientId,
                                @Field("storeid") String storeId, @Field("storeName") String storeName);

    @FormUrlEncoded
    @POST("api/api/kouKuanFn.html")
    Call<CommonResult> debit(@Field("cardnumber") String cardNo, @Field("brand_id") String brandId,
                             @Field("txMoney") String money, @Field("clientid") String clientId,
                             @Field("storeid") String storeId, @Field("storeName") String storeName);

    @GET("api/api/report.html")
    Call<ReportInfo> getReport(@Query("storeid") String storeid);

}
